<?php
/**
 +-----------------------------------------------------------------------+
 | dcAlbums - a Flickr plugin for Dotclear 2                             |
 | Copyright (C) 2008 - France                                           |
 |                                                                       |
 | This program is free software: you can redistribute it and/or modify  |
 | it under the terms of the GNU General Public License as published by  |
 | the Free Software Foundation, version 2 of the License.               |
 |                                                                       |
 | This program is distributed in the hope that it will be useful,       |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of        |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         |
 | GNU General Public License for more details.                          |
 |                                                                       |
 | You should have received a copy of the GNU General Public License     |
 | along with this program.  If not, see <http://www.gnu.org/licenses/>. |
 |                                                                       |
 +-----------------------------------------------------------------------+
 |  Author : Erwan Richard <contact@erwan-richard.info>                  |
 +-----------------------------------------------------------------------+ 
*/

if (!defined('DC_CONTEXT_ADMIN')) { return; }
 
require dirname(__FILE__).'/_widgets.php';

$_menu['Plugins']->addItem(__('dcAlbums'),
        'plugin.php?p=dcAlbums','index.php?pf=dcAlbums/icon.png',
        preg_match('/plugin.php\?p=dcAlbums(&.*)?$/',$_SERVER['REQUEST_URI']),
        $core->auth->check('usage,contentadmin',$core->blog->id));
?>